package cn.javass.dp.decorator.example2;

/**
 * 不用模式的 奖金计算案例
 */
public class Client {

    public static void main(String[] args) {
        Prize p = new Prize();
        double zs = p.calcPrize("张三", null, null);
        System.out.println("张三的奖金 = " + zs);

        double ls = p.calcPrize("李四", null, null);
        System.out.println("李四的奖金 = " + ls);

        double ww = p.calcPrize("王五", null, null);
        System.out.println("王五的奖金 = " + ww);
    }
}
